package com.zb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 网点策略表
 * </p>
 *
 * @author WEN
 * @since 2023-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjNetworkStrategy对象", description="网点策略表")
public class ZjNetworkStrategy implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "网点表ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = " 是否自动审核取消工单：0-否，1-是(自动审核)")
    @TableField("is_auto_check_cancel_order")
    private Boolean autoCheckCancelOrder;

    @ApiModelProperty(value = "是否自动审核申请结单：0-否，1-是(自动审核)")
    @TableField("is_auto_check_end_order")
    private Boolean autoCheckEndOrder;

    @ApiModelProperty(value = "是否启用更改备件价格：0-否，1-是（启用修改）")
    @TableField("is_enable_update_spare_price")
    private Boolean enableUpdateSparePrice;

    @ApiModelProperty(value = "是否自动确认接收工单策略：0-否，1-是")
    @TableField("is_auto_sure_receive_order")
    private Boolean autoSureReceiveOrder;

    @ApiModelProperty(value = "提现手续费策略：1-按比例收取(按提现总金额计算)，2-每间固定(按每单总金额计算)")
    private Integer withdrawHandlingFeeStrategy;

    @ApiModelProperty(value = "手续费比例，单位为%，当withdrawHandlingFeeStrategy=1时生效")
    private BigDecimal handingFeeProportion;

    @ApiModelProperty(value = "每单固定手续费：当withdrawHandlingFeeStrategy=2时生效")
    private BigDecimal handingFeeFixedOrder;

    @ApiModelProperty(value = "是否允许提现：0-否，1-是")
    @TableField("is_allow_withdrawal")
    private Boolean allowWithdrawal;

    @ApiModelProperty(value = "是否允许查看费用：0-否，1-是")
    @TableField("is_allow_select_fee")
    private Boolean allowSelectFee;

    @ApiModelProperty(value = "是否允许管理员代提现：0-否，1-是")
    @TableField("is_allow_manager_help_withdraw")
    private Boolean allowManagerHelpWithdraw;



}
